* {
    box-sizing: border-box;
    /* 去掉所有轮廓 */
    outline: none;
}

body {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding-top: 3rem;
    background-color: oldlace;
}

/* 新增按钮 */
.add {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: .5rem 1rem;
    color: #fff;
    background-color: yellowgreen;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
}

.add:active {
    transform: scale(.98);
}

/* 通过js生成便签 */
.note {
    /* 允许滚动 */
    overflow-y: scroll;
    margin: 30px 20px;
    width: 400px;
    height: 400px;
    background-color: #fff;
    box-shadow: 0 0 10px 4px rgba(0, 0, 0, .3);
}

/* 工具栏 */
.note .tools {
    /* 按钮右置 */
    display: flex;
    justify-content: flex-end;
    padding: .5rem;
    background-color: yellowgreen;
}

/* 工具栏按钮 */
.note .tools button {
    margin-left: .5rem;
    color: #fff;
    background-color: transparent;
    border: 0;
    font-size: 1rem;
    cursor: pointer;
}

/* 便签 文本区 */
.note textarea {
    padding: 20px;
    width: 100%;
    height: 400px;
    border: 0;
    font-size: 1.2rem;
    outline: none;
}

/* 已输入的文字区 */
.main {
    padding: 20px;
}

.hidden {
    display: none;
}